'''
继承
'''


class Person:
    num = 61

    def __init__(self):
        self.name = 'xm'
        self.age = 18

    @staticmethod
    def func1():
        print('静态方法')


class Student(Person):
    def __init__(self):
        super().__init__()

    @staticmethod
    def func():
        print('子类方法')


print(Student.num)
print()


class Animal:
    num = 100

    def __init__(self, age=0, gender='1'):
        self.age = age
        self.gender = gender

    def a_func1(self):
        print('动物的对象方法')


class Fly:
    flag = '飞行'

    def __init__(self, height=1000, time=3):
        self.height = height
        self.time = time

    @classmethod
    def f_fucn(cls):
        print('飞行的类方法')


class Bird(Animal, Fly):
    pass


b1 = Bird()
print(Bird.num, Bird.flag)
b1.a_func1()
Bird.f_fucn()

